import request from "@/utils/wxPayRequest"

export default
{
  /**
   * 挂号详情
   * @returns {AxiosPromise}
   */
  registrationDetail(id)
  {
    return request
    ({
      method:"GET",
      url:`/yy/registration/registrationDetail/${id}`,
    })
  },

  /**
   * 获得支付二维码
   */
  wxpay(registrationId)
  {
    return request
    ({
      method:"GET",
      url:`/wxpay/${registrationId}`,
    })
  },

  paySuccess(registrationId)
  {
    return request
    ({
      method:"GET",
      url:`/app/pay-user-order-registration/paySuccess/${registrationId}`,
    })
  }

}
